package com.itheima.fileIO;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class IODemo05 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("E:\\abc.txt");
        FileOutputStream fos=new FileOutputStream("FileIO\\abc.txt");
        int len;
        byte[] bytes=new byte[1024];
        while (((len=fis.read(bytes))!=-1)){
            fos.write(bytes,0,len);
        }
        fis.close();
        fos.close();
    }
}
